package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.ARRAYBAI10;

public class Model {
	public int[] calMark(String[][] ans, String[] key) {
		int[] result = new int[ans.length];
		for (int i = 0; i < ans.length; i++) {
			int mark = 0;
			for (int j = 0; j < ans[i].length; j++) {
					if (ans[i][j].equals(key[j])) {
						mark = mark + 1;
					}
			}
			result[i] = mark;
		}
		return result;
	}
}
